package com.xinzhi.dao;

import com.xinzhi.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    /**
     * 登录验证
     *
     * @param user
     * @return
     */
    User logincheck(User user);
    /**
     * 注册验证
     *
     * @param user
     * @return
     */
    int register(User user);


    /**
     * 去重
     * @param phone
     * @return
     */
    User repetition(@Param("phone") String phone);
}
